package mutithread.concurrent;

/**
 * created by steve
 * 2020-06-04 17:54
 */
public class ThreadTest {

  public static void main(String[] args) {
    for (int i = 0; i < 10; i++) {
      //
        Runnable runnable = new MainThread();
        Thread thread = new Thread(runnable);
        thread.run();
    }
  }

  static class MainThread implements Runnable {



      @Override
      public void run() {
          System.out.println(Thread.currentThread().getName() );
      }
  }
}
